package com.xique.blelock.model;


import java.io.Serializable;

public class LockInfo implements Serializable{
	

//			"lockId": "e04c636d8243",
//			"lockName": "Handle-4382",
//			"lockStatus": 1,
//			"lockPower": 4,
//			"hardwareVersion": "2",
//			"softwareVersion": "3",
//			"serialNumber": "1",
//			"vendor": "86",
//			"role": 0
	private String lockId;
	private String lockName;
	private int lockStatus;
	private int lockPower;
	private int hardwareVersion;
	private int softwareVersion;
	private int serialNumber;
	private String vendor;
	private int role;

	//辅助swipemenu  记录当前有几个自菜单

	private int menunum;

	public int getMenunum() {
		return menunum;
	}

	public void setMenunum(int menunum) {
		this.menunum = menunum;
	}

	public String getLockId() {
		return lockId;
	}

	public void setLockId(String lockId) {
		this.lockId = lockId;
	}

	public String getLockName() {
		return lockName;
	}

	public void setLockName(String lockName) {
		this.lockName = lockName;
	}

	public int getLockStatus() {
		return lockStatus;
	}

	public void setLockStatus(int lockStatus) {
		this.lockStatus = lockStatus;
	}

	public int getLockPower() {
		return lockPower;
	}

	public void setLockPower(int lockPower) {
		this.lockPower = lockPower;
	}

	public int getHardwareVersion() {
		return hardwareVersion;
	}

	public void setHardwareVersion(int hardwareVersion) {
		this.hardwareVersion = hardwareVersion;
	}

	public int getSoftwareVersion() {
		return softwareVersion;
	}

	public void setSoftwareVersion(int softwareVersion) {
		this.softwareVersion = softwareVersion;
	}

	public int getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(int serialNumber) {
		this.serialNumber = serialNumber;
	}

	public String getVendor() {
		return vendor;
	}

	public void setVendor(String vendor) {
		this.vendor = vendor;
	}

	public int getRole() {
		return role;
	}

	public void setRole(int role) {
		this.role = role;
	}

	//注解绑定状态


	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		LockInfo lockInfo = (LockInfo) o;

		return lockId.equals(lockInfo.lockId);
	}

	@Override
	public int hashCode() {
		return lockId != null ? lockId.hashCode() : 0;
	}
}
